package win.itshen.cloud.adminlte.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import win.itshen.cloud.adminlte.common.entity.SuperEntity;

import java.util.List;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author luckyxz999
 * @since 2017-09-19
 */
@Data
@TableName("sys_user")
public class SysUser extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 登录名
     */
    @TableField("login_name")
    private String loginName;
    /**
     * 密码
     */
    private String password;
    /**
     * 姓名
     */
    private String name;
    /**
     * 电子邮箱
     */
    private String email;
    /**
     * 手机号码
     */
    private String mobile;
    /**
     * 状态 0-禁用 1-启用
     */
    private Integer status;

    @TableField(exist = false)
    private List<SysRole> roleList;

}
